
import 'dart:async';

import 'yk_pda_plugin_platform_interface.dart';

class YkPdaPlugin {
  // 静态实例
  static final YkPdaPlugin _instance = YkPdaPlugin._();

  // 获取单例实例的方法
  static YkPdaPlugin get instance => _instance;

  final _pluginEventStreamController = StreamController<dynamic>.broadcast();

  Stream<dynamic> get pluginEventStream => _pluginEventStreamController.stream;

  // 私有构造函数
  YkPdaPlugin._() {
    YkPdaPluginPlatform.instance.init(_pluginEventStreamController);
  }


}
